<?php get_header(); ?>

<div class="top">
  <div class="main">
    <div class="topbox topboxlist">
      <p><?php
          $category_id = get_query_var('cat');
          $category_name = $category->name;
          echo $category_name; ?></p>
      <img src="<?php
                $category_id = get_query_var('cat');
                $category_description = $category->description;
                echo $category_description; ?>" class="topboxlistimg">
    </div>
  </div>
</div>



<div class="plistbox">
  <div class="main">
    <div class="plistboxs">


      <?php $post_query = new WP_Query('showposts=100');
      while (have_posts()) : the_post(); ?>


        <a href="<?php the_permalink(); ?>">
          <?php if (has_post_thumbnail()) : ?>

            <?php echo get_the_post_thumbnail($post->ID, 'product_img', array('alt' => $post->post_title)) ?>

          <?php else : ?>

            <?php if (get_post_meta(get_the_ID(), 'thumbnail', true)) : ?>

              <img src="<?php echo get_post_meta(get_the_ID(), 'attachment-portfolio-image wp-post-image', true) ?>">

            <?php endif; ?>

          <?php endif; ?>
          <span><?php the_title(); ?></span>

          <em><b><?php echo get_post_meta($post->ID, "产品描述", true); ?></b><br />

            <?php if (get_post_meta($post->ID, 'Northbound', true)) { ?><b>Northbound: </b><?php echo get_post_meta($post->ID, "Northbound", true); ?><br /><?php } ?>
            <?php if (get_post_meta($post->ID, 'Southbound', true)) { ?><b>Southbound:</b><?php echo get_post_meta($post->ID, "Southbound", true); ?></em><?php } ?>


        <p><b><?php echo get_post_meta($post->ID, "价格", true); ?></b>Learn more<i></i></p>
        </a>

      <?php endwhile; ?>



    </div>
  </div>
</div>

<script>
  $(function() {
    $("body").addClass("bj2")
  })
</script>


<?php get_footer(); ?>